import { RouteRecordRaw, RouterView } from 'vue-router'

const routes: RouteRecordRaw = {
  path: 'project',
  name: 'project',
  meta: {
    title: '项目'
  },
  component: RouterView,
  children: [
    {
      path: 'list',
      name: 'project_list',
      meta: {
        title: '项目列表'
      },
      component: () => import('@/views/project/list/index.vue')
    },
    {
      path: 'analysis',
      name: 'project_analysis',
      meta: {
        title: '项目分析'
      },
      component: () => import('@/views/project/analysis/index.vue')
    },
    {
      path: 'doc',
      name: 'project_doc',
      meta: {
        title: '项目文档'
      },
      component: () => import('@/views/project/doc/index.vue')
    }
  ]
}

export default routes
